# 计算圆的面积
import math

print(math.pi)


# def area_of_circle(radius):
#     return math.pi * radius ** 2


# 保留两位小数版本
def area_of_circle(radius):
    return round(math.pi * radius ** 2, 2)


print(area_of_circle(3))


